/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.p10.miage.gestionnote.modelservice;

import fr.p10.miage.gestionabsence.model.Connection;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author charleshenzel
 */
public class UtilService 
{
    public static float arrondiNDecimales(float moy, int n)
    {
        double pow = Math.pow(10, n);
                
        moy = (float) ((float)(Math.floor(moy * pow)) / pow);
        
        return moy;
    }
}
